* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #09add, #ef1914);
    color: #f1f1f1;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* 背景动画相关（部分关键帧可能需结合完整代码，这里按截图提取） */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(108, 92, 231, 0.1) 0%, transparent 200px),
                radial-gradient(circle at 90% 20%, rgba(255, 118, 117, 0.1) 0%, transparent 200px),
                radial-gradient(circle at 50% 90%, rgba(20, 203, 18, 0.1) 0%, transparent 300px);
    z-index: -1;
}

/* 颗粒背景 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px, 10px 10px, 20px 20px;
}

/* 导航栏 - 顶部 */
header .nav-container {
    background: rgba(25, 16, 28, 0.85);
    border-bottom: 1px solid rgba(108, 92, 231, 0.3);
    box-shadow: 0 1px 0 rgba(108, 92, 231, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    overflow: hidden;
}

/* 清除浮动 */
.nav-container::after {
    content: '';
    display: table;
    clear: both;
}

.logo {
    float: left;
}

.logo-icon {
    float: left;
    font-size: 2em;
    color: #fff;
    margin-right: 10px;
    text-shadow: 0 0 10px rgba(26, 206, 0, 0.7);
    display: inline-block;
    vertical-align: middle;
    font-size: 1.8em;
}

.logo-text {
    font-family: 'Arial Black', sans-serif;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    background: linear-gradient(to right, #09add, #a5c0e7, #8cec9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 0 rgba(108, 92, 231, 0.3);
    display: inline-block;
    vertical-align: middle;
    font-size: 1.8em;
}

.nav-links {
    float: right;
    list-style: none;
    margin-top: 8px;
}

.nav-links li {
    display: inline-block;
    margin-left: 30px;
}

.nav-links li a {
    color: #f1f1f1;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.8px;
    font-size: 18px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff775;
    transition: width 0.4s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.hero {
    padding: 120px 30px 80px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    clear: both;
}

/* 清除内部间隔 */
.hero::after {
    content: '';
    display: table;
    clear: both;
}

.hero h1 {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 56px;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #f1f1f1, #8cec9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 0 rgba(26, 206, 0, 0.3);
}

.hero p {
    font-size: 20px;
    color: #d2d2d2;
    max-width: 600px;
    margin: 0 auto;
}

.hero-divider {
    height: 1px;
    width: 50%;
    background: linear-gradient(to right, #09add, #a5c0e7, #8cec9, #f909d0);
    margin: 30px auto;
    border-radius: 3px;
}

/* 博客网格 - 内容区域及元素 */
.blog-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
    text-align: center;
}

/* 清除内部模块元素的空格 */
.blog-grid::after {
    content: '';
    display: table;
    clear: both;
}

.post-card {
    background: linear-gradient(145deg, rgba(24, 25, 31, 0.9), rgba(25, 16, 28, 0.9));
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 100%;
    margin: 10px 0;
    /* 相当于 20px 间隔 */
    box-sizing: border-box;
}

.post-card::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(145deg,
        #09add,
        #a5c0e7,
        #8cec9,
        #fff775,
        #8cec9);
    background-size: 400%;
    z-index: -1;
    border-radius: 12px;
    animation: gradientFlow 20s linear infinite;
    opacity: 0.7;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.post-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.15);
}

.post-content {
    padding: 25px;
}

.post-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: #a2b0c3;
    text-align: left;
    overflow: hidden;
}

/* 清除浮动 */
.post-meta::after {
    content: '';
    display: table;
    clear: both;
}

.post-author {
    color: #8cec9;
    float: left;
}

.post-date {
    float: right;
}

.post-card h2 {
    font-family: 'Arial Black', sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 0.8px;
    line-height: 1.4;
    text-align: left;
    clear: both;
}

.post-excerpt {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.6;
}

.post-tags {
    text-align: left;
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    background: rgba(108, 92, 231, 0.15);
    color: #a2b0c3;
    border: 1px solid rgba(108, 92, 231, 0.3);
    font-size: 14px;
}

.read-more {
    /* display: inline-block; */
    content: '';
    position: relative;
    font-weight: 600;
    text-decoration: none;
    color: #f1f1f1;
    padding: 8px 18px;
    background: linear-gradient(145deg, #09add, #ef1914);
    border-radius: 8px;
    transition: all 0.4s ease;
    float: left;
}

.read-more::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(145deg, #09add, #ef1914);
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.post-card:hover .read-more {
    transform: translateX(5px);
}

.read-more:hover::after {
    opacity: 1;
}

/* 其他模块（如页脚等，按截图内容提取，可能不完整，需结合实际场景补充） */
.footer-section {
    padding: 38px;
    content: '';
    box-sizing: border-box;
}

.footer-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 5px;
    background: #fff775;
    transition: width 0.4s ease;
}

.footer-section p {
    color: #a2b0c3;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

.footer-section a {
    color: #8cec9;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    display: inline-block;
    margin: 0 10px;
    transition: all 0.4s ease;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff775;
    transition: width 0.4s ease;
}

.footer-section a:hover::after {
    width: 100%;
}
